#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :ord_chr_22.py
# @Time      :2020/6/22 15:24
# @Author    :Administrator

c = input('请输入一个字符')
print('{}字符对应的ascii为{}'.format(c, ord(c)))

a = int(input('请输入一个ascii数'))
print('{}对应的字符为{}'.format(a, chr(a)))
